]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
edgeDragAction: Change edge trigger threshold to AFTER
authorCarlos Garnacho <carlosg@gnome.org>
Wed, 25 May 2022 18:54:39 +0000 (20:54 +0200)
committerMarge Bot <marge-bot@gnome.org>
Fri, 27 May 2022 09:29:26 +0000 (09:29 +0000)
For all instances of this gesture, we want this gesture to
activate after some distance, not to eat button presses/releases
right away.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2304>

js/ui/edgeDragAction.js

index 986b658e06872a946486530179a9556c195ac6df..c0f9e4edd010cb40615244029186adec41a173d5 100644 (file)
@@ -19,6 +19,7 @@ var EdgeDragAction = GObject.registerClass({
         this._side = side;
         this._allowedModes = allowedModes;
         this.set_n_touch_points(1);
+        this.set_threshold_trigger_edge(Clutter.GestureTriggerEdge.AFTER);
 
         global.display.connect('grab-op-begin', () => this.cancel());
     }